//package com.example.demo.utils;
//
//import com.baomidou.mybatisplus.annotation.DbType;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
///**
// * MybatisPlus配置类
// *
// */
//@EnableTransactionManagement
//@Configuration
//@MapperScan("com.example.demo.mapper")
//public class MybatisPlusConfig {
//
//    /**
//     * 插件配置
//     * 1.分页拦截器配置
//     */
//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
//        return interceptor;
//    }
//}
